package lp.xian.materials.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.domain.Supplier;
import lombok.Data;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购入库单对象 lp_warehousing_requisition
 *
 * @author ruoyi
 * @date 2023-08-10
 */
@Data
public class WarehousingRequisition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Integer warehousingRequisitionId;

    /** 仓库 */
    @Excel(name = "仓库")
    private Integer warehouseDeptId;

    /** 入库单号 */
    @Excel(name = "入库单号")
    private String warehousingRequisitionOrder;

    /** 业务员 */
    @Excel(name = "业务员")
    private String warehousingRequisitionPerson;

    /** 供应商 */
    @Excel(name = "供应商")
    private Integer supplierId;

    /** 采购类型 */
    @Excel(name = "采购类型")
    private Integer requisitionType;

    /** 入库类型（0:采购 1：生产 3：销售） */
    @Excel(name = "入库类型", readConverterExp = "0=:采购,1=：生产,3=：销售")
    private Integer warehousingType;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer auditStatus;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditPerson;
    @Excel(name = "入库日期")
    private Date warehousingDate;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    private WarehouseDept warehouseDept;

    private Supplier supplier;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

                .append("warehousingDate", getWarehousingDate())
                .append("warehousingRequisitionId", getWarehousingRequisitionId())
                .append("warehouseDeptId", getWarehouseDeptId())
                .append("warehousingRequisitionOrder", getWarehousingRequisitionOrder())
                .append("warehousingRequisitionPerson", getWarehousingRequisitionPerson())
                .append("supplierId", getSupplierId())
                .append("requisitionType", getRequisitionType())
                .append("warehousingType", getWarehousingType())
                .append("auditStatus", getAuditStatus())
                .append("auditPerson", getAuditPerson())
                .append("auditTime", getAuditTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
